package ticket;

import net.sf.json.JSONObject;

import com.dudu.utils.HttpRequest;

/**
 * 通话记录查询服务
 * 
 * @author qinfx
 *
 */
public class CommunicationRecord {

	public static void main(String[] agr) throws Exception {
		test();
	}

	public static void test() {
		String responsedata = "";
		try {
			JSONObject paramJson = new JSONObject();
			paramJson.put("request_time_to", "2016-11-25 23:59:59");
			paramJson.put("caller", "");
			paramJson.put("page_size", "200");
			paramJson.put("request_state", "");
			paramJson.put("app_key", "99653B0C7EC6897C2F426C0E13A9D66C");
			paramJson.put("cust_account", "1470015354360_10159");
			paramJson.put("request_time_from", "2016-11-22 00:00:00");
			paramJson.put("request_id", "");
			paramJson.put("ext_terminalCode", "");
			paramJson.put("product_code", "Dial");
			paramJson.put("ext_orgCode", "");
			paramJson.put("page_no", "1");
			paramJson.put("ext_bizId", "");
			
			String Myurl = "http://172.20.14.212:8443/duduTicket/query/communicationRecord";
			responsedata = HttpRequest.postData(Myurl, paramJson.toString());
			
			System.out.println(responsedata);

		} catch (Exception e) {
			e.printStackTrace();
		}
	}

}
